$(function(){
	paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
	showCondition(true);
	if(typeof(paramTabPage[tabId].previous)=="undefined")
	{
		$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].title);
	}
	else
	{
		if(paramTabPage[tabId].previous=="depGroup")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depGroupName+"指标");
		}
		else if(paramTabPage[tabId].previous=="dep")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depName+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="mdc")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].mdcCode+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="adrg")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].adrgCode+"指标");
		}
		else if(paramTabPage[tabId].monitorType=="drgs")
		{
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].drgsCode+"指标");
		}
	}
		
	
	getQuotas("ywcDisLineWard", loadData,"ward");
	
	function loadData(totalQuota){
		//全院指标 (1.mdc 2.All)
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"depgroupallQuotasId","ywcDisLineWardTotal");
		//加载并拼接下半部分div布局
		loadDRGsQuota(totalQuota,"病区","depgroupquotasId");
		//病种下的病区
		loadDRGsQuotaData(totalQuota,"ward",true,null,"ywcDisLineWardDetail");
	}
});